package helper

import (
	"context"
	"server/internal/core/constant"
)

func GetTraceID(ctx context.Context) string {
	if traceID, ok := ctx.Value(constant.TraceIDKeyType{}).(string); ok {
		return traceID
	}
	return ""
}
